package com.kyle.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author: kyle_fu
 * @description: TODO
 * @date: 2023/12/17 21:03
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept implements Serializable {

    private Integer deptno;
    private String dname;
    private String loc;

    //当前部门下所有员工对象的list集合
     private List<Emp> emps;

     public Dept(Integer deptno, String dname, String loc) {
          this.deptno = deptno;
          this.dname = dname;
          this.loc = loc;
      }
}
